<?php
include("image_functions2.php");
function get_filename($fname){
	$t=correct_slashes($fname);
	$cv=explode("/",$t);
	$fname=$fname=substr($cv[count($cv)-1],0,-4);
	return $fname;
}

function correct_slashes($stx){
	$stx=str_replace("\\","/",$stx);
	return $stx;
}

function get_file_extension($url){
  $ext = substr(strrchr($url, "."), 1);
  return $ext;
}
generate_scaled_image("624082034_a1bef848f8_o.jpg",array(400,"auto"),'width',0,"");

?>